package cn.iocoder.yudao.module.wine.controller.admin.supplyorderitem.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 订单项信息 Response VO")
@Data
@ExcelIgnoreUnannotated
public class SupplyOrderItemRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "31703")
    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "订单ID", example = "8671")
    @ExcelProperty("订单ID")
    private Long orderId;

    @Schema(description = "供求信息ID", example = "15187")
    @ExcelProperty("供求信息ID")
    private Long infoId;

    @Schema(description = "购买的瓶数")
    @ExcelProperty("购买的瓶数")
    private Integer quantity;

    @Schema(description = "购买的件数")
    @ExcelProperty("购买的件数")
    private Integer packages;
    /**
     * 单价，单位：元
     */
    @Schema(description = "单价，单位：元", example = "29756")
    private BigDecimal salePrice;

    @Schema(description = "应付金额（总），单位：元", example = "29756")
    @ExcelProperty("应付金额（总），单位：元")
    private BigDecimal payPrice;

    @Schema(description = "保费金额（总），单位：分", example = "3055")
    @ExcelProperty("保费金额（总），单位：分")
    private Integer premiumPrice;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    //联表供求信息
    @Schema(description = "信息名称", example = "李四")
    @ExcelProperty("信息名称")
    private String infoName;

    @Schema(description = "简短标题")
    @ExcelProperty("简短标题")
    private String infoTitle;

    @Schema(description = "年份")
    @ExcelProperty("年份")
    private Integer showYear;

    @Schema(description = "年份")
    @ExcelProperty("年份")
    private String showYearName;

    @Schema(description = "香型", example = "1")
    @ExcelProperty("香型")
    private Integer fragranceType;

    @Schema(description = "香型", example = "1")
    @ExcelProperty("香型")
    private String fragranceTypeName;

    @Schema(description = "度数")
    @ExcelProperty("度数")
    private Integer degree;

    @Schema(description = "度数")
    @ExcelProperty("度数")
    private String degreeName;

    @Schema(description = "容量")
    @ExcelProperty("容量")
    private Integer capacity;

    @Schema(description = "容量")
    @ExcelProperty("容量")
    private String capacityName;

    @Schema(description = "包装")
    @ExcelProperty("包装")
    private Integer packing;

    @Schema(description = "包装")
    @ExcelProperty("包装")
    private String packingName;

    @Schema(description = "产地")
    @ExcelProperty("产地")
    private Integer productArea;

    @Schema(description = "产地名称")
    @ExcelProperty("产地名称")
    private String productAreaName;

    @Schema(description = "语言")
    @ExcelProperty("语言")
    private Integer language;

    @Schema(description = "语言名称")
    @ExcelProperty("语言名称")
    private String languageName;

    @Schema(description = "单图")
    @ExcelProperty("单图")
    private String image;

    @Schema(description = "单位：件/箱")
    @ExcelProperty("单位：件/箱")
    private Integer unit;

    @Schema(description = "单位：件/箱")
    @ExcelProperty("单位：件/箱")
    private String unitName;
}